package cn.mdmbct.douyin.data.response.user;

import com.alibaba.fastjson.annotation.JSONField;
import cn.mdmbct.douyin.common.response.DefaultResponseData;
import cn.mdmbct.douyin.common.response.DyOpenApiResponse;
import cn.mdmbct.douyin.common.response.ResponseExtra;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 获取用户点赞数返回
 *
 * @author mdmbct  mdmbct@outlook.com
 * @date 2021/3/8 17:08
 * @modified mdmbct
 * @since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DataUserLikeRes implements DyOpenApiResponse {

    private static final long serialVersionUID = -6601663020298905729L;

    private ResponseExtra extra;

    private DataUserLikeResData data;


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = true)
    public static class DataUserLikeResData extends DefaultResponseData {

        private static final long serialVersionUID = -6098295762371399900L;

        @JSONField(name = "result_list")
        private List<LikeCount> resultList;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class LikeCount implements Serializable {

        private static final long serialVersionUID = -7796155314082204438L;

        /**
         * 日期
         */
        private String date;

        @JSONField(name = "new_like")
        private long newLike;
    }
}
